#include <algorithm>
#include <iostream>
#include <string>
#include <iterator>
#include <vector>

using namespace std;



void IOStreamIteratorTest()
{/*
	vector<int> ivec;
	istream_iterator<int> cin_it(cin);
	istream_iterator<int> begin_of_stream;

	while(cin && cin.get() != 'q'){
		ivec.push_back(*cin_it++);
	}

	vector<int>::iterator it = ivec.begin();
	while(it != ivec.end())
	{
		cout << *it++ << endl;
	}	*/


	ostream_iterator<string> out_it(cout, "\r\n");
	istream_iterator<string> in_it(cin), eof;
	while(in_it != eof)
	{
		*out_it ++ =  *in_it++;
	}
}